Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FBX texture path resolving #90635

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

bqqbarbhg
Copy link
Contributor

Fix resolving texture paths using the FBX importer.

Previously, the importer would call localize_path() on relative paths, which resulted in relative_texture.png turning into res://relative_texture.png. This was then concatenated to another res:// path resulting in something like res://models/res://relative_texture.png.

Also it turns out that the fallback texture lookup logic was used unconditionally, and the importer did not attempt to check if the original texture path exists. This PR fixes that issue as well.

@akien-mga akien-mga merged commit d007340 into godotengine:master Apr 14, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants